package com.yaoli.SheJiMoShi.Decorator;

/**
 * Created by YaoLi on 2017/9/29.
 *
 * 男人修饰类
 */
public class ManDecoratorSwimming extends ManDecorator {

    public ManDecoratorSwimming(Person person) {
        super(person);
    }

    @Override
    public void introduce(String name, Integer age) {
        super.introduce(name, age);
        swimming();
    }

    public void swimming (){
        System.out.println("功能增强之：我会游泳");
    }
}
